-- Prefan Access Controller
-- Slap Plugin

-- YOU COPY AND PASTED, YOU KEPT THE COMMENTS >:[
-- You have horrible coding looks, use spaces.

if not SERVER then return end

function PAC.Slap( owner, ply )
	local xspeed = math.random( -500, 500 ) -- What the hell are you doing with **?  Those should be NUMBERS!
	local yspeed = math.random( -500, 500 ) 
	local zspeed = math.random( -500, 500 )
	ply:SetVelocity( Vector( xspeed, yspeed, zspeed ) )
	ply:SetHealth( ply:Health() - 10 )

	if ply:InVehicle() then ply:ExitVehicle() end -- Impossible if then statement, it has to be == not =.  Also, it assumes 1 if there is no equals.
	if ply:Health() <= 0 then ply:Kill() end
	ply:EmitSound("player/pl_fallpain3.wav", 100, 100) -- So who are you emitting from?  You need to have a player to emit from, ply:EmitSound( **** )
	
end

PAC.AddChatCommand( "slap", "PLAYER|NUMBER", "moderator", PAC.Slap )

PAC.AddPlugin( "Slap", "Bitch Slap Dat Foo", "Schuyler" ) -- Forgot to change the name yo
